<html>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Exercises</title>
<link rel="STYLESHEET" type="text/css" href="images/style.css">
<link rel="STYLESHEET" type="text/css" href="images/docsafari.css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch01lev1sec12.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=ch02.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><a name="ch01lev1sec20"></a>
<h3 class="docSection1Title">Exercises</h3>
<P><table border="0" cellspacing="16" cellpadding="0"><TR valign="top"><td align="right" class="docText" width="50"><a name="ch01qa1q1"></a><B><a class="docLink" href="app03lev1sec1.html#ch01qa1q1a1">1.1</a></b></TD><TD><p class="docText"><a name="idd1e4858"></a><a name="idd1e4861"></a><a name="idd1e4866"></a><a name="idd1e4871"></a><a name="idd1e4876"></a><a name="idd1e4881"></a><a name="idd1e4886"></a><a name="idd1e4891"></a><a name="idd1e4896"></a><a name="idd1e4901"></a>Verify on your system that the directories dot and dot-dot are not the same, except in the root directory.</p></TD></TR><TR valign="top"><td align="right" class="docText" width="50"><a name="ch01qa1q2"></a><B><a class="docLink" href="app03lev1sec1.html#ch01qa1q2a2">1.2</a></b></td><TD><p class="docText">In the output from the program in <a class="docLink" href="ch01lev1sec6.html#ch01fig06">Figure 1.6</a>, what happened to the processes with process IDs 852 and 853?</P></TD></tr><TR valign="top"><TD align="right" class="docText" width="50"><a name="ch01qa1q3"></a><b><a class="docLink" href="app03lev1sec1.html#ch01qa1q3a3">1.3</a></b></TD><TD><p class="docText">In <a class="docLink" href="ch01lev1sec7.html#ch01lev1sec7">Section 1.7</a>, the argument to <tt>perror</tt> is defined with the ISO C attribute <tt>const</tt>, whereas the integer argument to <tt>strerror</tt> isn't defined with this attribute. Why?</p></td></tr><tr valign="top"><TD align="right" class="docText" width="50"><a name="ch01qa1q4"></a><b><a class="docLink" href="app03lev1sec1.html#ch01qa1q4a4">1.4</a></b></TD><td><p class="docText">In the error-handling function <tt>err_sys</tt> in <a class="docLink" href="app02.html#app02">Appendix B</a>, why is the value of <tt>errno</tt> saved when the function is called?</P></td></tr><tr valign="top"><td align="right" class="docText" width="50"><a name="ch01qa1q5"></a><b><a class="docLink" href="app03lev1sec1.html#ch01qa1q5a5">1.5</a></b></td><td><p class="docText">If the calendar time is stored as a signed 32-bit integer, in what year will it overflow? What ways can be used to extend the overflow point? Are they compatible with existing applications?</p></td></tr><tr valign="top"><td align="right" class="docText" width="50"><a name="ch01qa1q6"></a><b><a class="docLink" href="app03lev1sec1.html#ch01qa1q6a6">1.6</a></b></td><td><p class="docText">If the process time is stored as a signed 32-bit integer, and if the system counts 100 ticks per second, after how many days will the value overflow?</p></td></TR></table></P>

<a href="17021535.html"><img src="images/pixel.gif" alt="" width="1" height="1" border="0"></a><ul></UL></TD></TR></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div STYLE="MARGIN-LEFT: 0.15in;"><a href="toc.html"><img src="images/team.gif" width="60" height="17" border="0" align="absmiddle"  alt="Team BBL"></a></div></td>
<td align="right"><div STYLE="MARGIN-LEFT: 0.15in;">
<a href=ch01lev1sec12.html><img src="images/prev.gif" width="60" height="17" border="0" align="absmiddle" alt="Previous Page"></a>
<a href=ch02.html><img src="images/next.gif" width="60" height="17" border="0" align="absmiddle" alt="Next Page"></a>
</div></td></tr></table>
</body></html><br>
<table width="100%" cellspacing="0" cellpadding="0"
style="margin-top: 0pt; border-collapse: collapse;"> 
<tr> <td align="right" style="background-color=white; border-top: 1px solid gray;"> 
<a href="http://www.zipghost.com/" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">The CHM file was converted to HTM by Trial version of <b>ChmD<!--142-->ecompiler</b>.</a>
</TD>
</TR><tr>
<td align="right" style="background-color=white; "> 
<a href="http://www.etextwizard.com/download/cd/cdsetup.exe" target="_blank" style="font-family: Tahoma, Verdana;
 font-size: 11px; text-decoration: none;">Download <b>ChmDec<!--142-->ompiler</b> at: http://www.zipghost.com</a>
</TD></tr></table>
